package com.eleadmin.common.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eleadmin.common.core.web.PageResult;
import com.eleadmin.common.system.entity.CreditRating;
import com.eleadmin.common.system.param.CreditRatingParam;

import java.util.List;

/**
 * 信用等级表Service
 *
 * @author EleAdmin
 * @since 2025-04-30 20:57:55
 */
public interface CreditRatingService extends IService<CreditRating> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<CreditRating>
     */
    PageResult<CreditRating> pageRel(CreditRatingParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<CreditRating>
     */
    List<CreditRating> listRel(CreditRatingParam param);

    /**
     * 根据id查询
     *
     * @param id 主键
     * @return CreditRating
     */
    CreditRating getByIdRel(Integer id);


    /**
     * 根据用户查询
     *
     * @param userId 用户id
     * @return CreditRating
     */
    CreditRating getByUserId(Integer userId);

}
